package Entities

import "time"

type Like struct {
	ID       int       `gorm:"primaryKey"`
	Av       string    `gorm:"size:20;index"` // 存格式是 "av123"
	Username string    `gorm:"size:50;index"`
	Liked    bool      `gorm:"not null;default:false"`
	Modified time.Time `gorm:"autoUpdateTime"`
}

func (Like) TableName() string {
	return "likes"
}
